#include "CallerMachine.h"
#include <string>
CallerMachine::CallerMachine() {
	this->CurrentNo = "0001";
}
CallerMachine::~CallerMachine() {
	
}
// 获取当前编号
std::string CallerMachine::getCurrentNo() {
	int No = std::atoi(this->CurrentNo.c_str());
	No++;
	std::string str = this->CurrentNo;
	this->CurrentNo = std::to_string(No);
	// 循环 设置其为 0001 的样式
	while(this->CurrentNo.size() < 4) {
		this->CurrentNo = "0" + this->CurrentNo;
	}
	return str;
}